#include <unistd.h>;
#include <netinet/in.h>;
namespace BYTEORDER_HTON_WRITE {

	void test_06_mywrite(int s, short* p) {
		write(s, p, sizeof * p);
	}

	void test_06_mywrite_wrapper(int s, short* p) {
		test_06_mywrite(s, p);
	}


	void test_06_write(int s, short x) {
		short u = x + 12;
		test_06_mywrite_wrapper(s, &u);
	}



	void test_06_mywrite(int s, short* p) {
		write(s, p, sizeof * p);
	}

	void test_06_mywrite_wrapper(int s, short* p) {
		test_06_mywrite(s, p);
	}


	void test_06_write(int s, short x) {
		short u = x + 12;
		u = htons(u);
		test_06_mywrite_wrapper(s, &u);
	}
}